package com.zhou.JavaAndroidFirm.http;

/**
 * @author Administrator
 * @date 2018/7/15 0015
 * @des
 */
public class ApiConstants {
    // 头条TYPE
    public static final String HEADLINE_TYPE = "headline";
    // 房产TYPE
    public static final String HOUSE_TYPE = "house";
    // 其他TYPE
    public static final String OTHER_TYPE = "list";

    // 头条id
    public static final String HEADLINE_ID = "T1348647909107";
    // 房产id
    public static final String HOUSE_ID = "5YyX5Lqs";


    public static final String NETEAST_HOST_BASEURL = "http://c.m.163.com/";
    public static final String SINA_PHOTO_HOST_BASEURL = "http://gank.io/api/";
    public static final String NEWS_DETAIL_HTML_PHOTO_HOST_BASEURL = "http://kaku.com/";

    public static String getType(String s) {
        switch (s) {
            case HEADLINE_ID:
                return HEADLINE_TYPE;
            case HOUSE_ID:
                return HOUSE_TYPE;
            default:
                break;
        }
        return OTHER_TYPE;

    }


}
